﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CH.Easy.UI.Domain;
using CH.Easy.UI.Domain.ModuleAgg;

namespace CH.Easy.CMS.Seedwork.Modules.Common
{
    public class News
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public DateTime AddTime { get; set; }
    }


    public class StaticHtmlModule : BaseModule
    {
        public override string Name
        {
            get { return "输出静态页面"; }
        }

        public override string Description
        {
            get { return "输出静态页面信息"; }
        }



        public override void SetDataSource()
        {
            List<News> list = new List<News>()
            {
                new News(){ AddTime=DateTime.Now, ID=1, Title="习近平：各级官员要率先垂范杜绝公款浪费" }, 
                new News(){ AddTime=DateTime.Now, ID=2, Title="王东明当选四川省人大主任 魏宏任省长" }, 
                new News(){ AddTime=DateTime.Now, ID=3, Title="重庆不雅视频爆料人:比雷政富级别高者漏网" } 
            };


            SetData("CH", list);
        }
    }
}
